/**
 * Created by shenguolin on 2022/2/15 8:49
 * lowcode-front
 * Description:
 */
import request from '@/utils/request'


export function getSnakeData(data) {
  return request.post(`buss/approvalitem/getApproval?companyId=${data.companyId}&projectId=${data.projectId}`, {})
}
export function getSnakeDatajsc(projectId) {
  return request.post(`buss/approvalitem/getApprovalJsc?projectId=${projectId}`, {})
}

export function submitApproval(data) {
  return request.post('buss/approvalitem/add', data)
}

export function resubmitApproval(data) {
  return request.post('buss/approvalitem/edit', data)
}

export function getListForFile(data) {
  return request.post('buss/approvalitem/listPage', data)
}

export function getOneForFile(data) {
  return request.get('buss/approvalitem/getOne?id=' + data)
}

export function getDept(data) {
  return request.get('buss/approvalproblem/getDept?id=' + data)
}

export function getListForProblem(data) {
  return request.post('buss/approvalproblem/listPage', data)
}

export function getOneForProblem(data) {
  return request.get('buss/approvalproblem/getOne?id=' + data)
}

export function submitApprovalProblem(data) {
  return request.post('buss/approvalproblem/add', data)
}

export function resubmitApprovalProblem(data) {
  return request.post('buss/approvalproblem/edit', data)
}

export function delItem(data) {
  return request.post('buss/approvalitem/del', data)
}

export function delProblem(data) {
  return request.post('buss/approvalproblem/del', data)
}

export function getCompanyTree(data) {
  return request.post('buss/approvalweek/getCompanyTree', data)
}

export function getProject(data) {
  return request.post('buss/approvalweek/getProject', data)
}

export function getProjectBid(data) {
  return request.post('buss/approvalwarwatch/getProject', data)
}


export function setProject(data) {
  return request.post('buss/approvalweek/setProject', data)
}

export function getListForWeek(data) {
  return request.post('buss/approvalweek/listPage', data)
}

export function getCompanyTreeItem(data) {
  return request.post('buss/approvalitem/getCompanyTree', data)
}

export function saveWeekReport(data) {
  return request.post('buss/approvalweek/saveWeekReport', data)
}

export function setProjectww(data) {
  return request.post('buss/approvalwarwatch/setProject', data)
}

export function getListForWarWatch(data) {
  return request.post('buss/approvalwarwatch/listPage', data)
}

export function saveWarWatchReport(data) {
  return request.post('buss/approvalwarwatch/saveWarWatchReport', data)
}
export function getWorkContent(data) {
  return request.post('buss/approvalsetting/getWorkContent', data)
}

export function importExcel(data) {
  return request.post('buss/approvalwarwatch/importExcel', data)
}

export function exportExcel(data) {
  return request({
    method: 'post',
    url: 'buss/approvalwarwatch/exportExcel',
    data: data,
    responseType: 'blob'
  })
}

export function exportWeekExcel(data) {
  return request({
    method: 'post',
    url: 'buss/approvalweek/exportExcel',
    data: data,
    responseType: 'blob'
  })
}

export function submitConstrDrawReview(data) {
  return request.post('buss/constrdrawreview/add', data)
}

export function resubmitConstrDrawReview(data) {
  return request.post('buss/constrdrawreview/edit', data)
}

export function constrDrawReviewList(data) {
  return request.post('buss/constrdrawreview/listPage', data)
}

export function getOneConstrDrawReview(data) {
  return request.get('buss/constrdrawreview/getOne?id=' + data)
}

export function tecAdvServList(data) {
  return request.post('buss/tecadvserv/listPage', data)
}

export function submitTecAdvServ(data) {
  return request.post('buss/tecadvserv/add', data)
}

export function resubmitTecAdvServ(data) {
  return request.post('buss/tecadvserv/edit', data)
}

export function getTypeList(data) {
  return request.post('buss/tecadvserv/getTypeList', data)
}

export function getOneTecAdvServ(data) {
  return request.get('buss/tecadvserv/getOne?id=' + data)
}

export function delConstrDrawReview(data) {
  return request.post('buss/constrdrawreview/del', data)
}

export function delTecAdvServ(data) {
  return request.post('buss/tecadvserv/del', data)
}

export function delMeeting(data) {
  return request.post('buss/processmeeting/del', data)
}

export function meetingList(data) {
  return request.post('buss/processmeeting/listPage', data)
}

export function submitMeeting(data) {
  return request.post('buss/processmeeting/add', data)
}

export function resubmitMeeting(data) {
  return request.post('buss/processmeeting/edit', data)
}

export function getOneMeeting(data) {
  return request.get('buss/processmeeting/getOne?id=' + data)
}

export function getParent(data) {
  return request.post('buss/catalogue/getParent', data)
}

export function submitCatalogue(data) {
  return request.post('buss/catalogue/add', data)
}

export function resubmitCatalogue(data) {
  return request.post('buss/catalogue/edit', data)
}

export function getLeftTree(data) {
  return request.post('buss/catalogue/getLeftTree', data)
}

export function getRegister(data) {
  return request.post('buss/catalogue/getRegister', data)
}

export function getNameOfNode(data) {
  return request.post('buss/catalogue/getNameOfNode?id='+data)
}

export function submitReport(data) {
  return request.post('buss/reportinfor/add', data)
}

export function resubmitReport(data) {
  return request.post('buss/reportinfor/edit', data)
}

export function getDetail(data) {
  return request.post('buss/reportinfor/getDetail?id='+data)
}

export function getParentPic(data) {
  return request.post('buss/cataloguepic/getParent', data)
}

export function submitCataloguePic(data) {
  return request.post('buss/cataloguepic/add', data)
}

export function resubmitCataloguePic(data) {
  return request.post('buss/cataloguepic/edit', data)
}

export function getLeftTreePic(data) {
  return request.post('buss/cataloguepic/getLeftTree', data)
}

export function getRegisterPic(data) {
  return request.post('buss/cataloguepic/getRegister', data)
}

export function getNameOfNodePic(data) {
  return request.post('buss/cataloguepic/getNameOfNode?id='+data)
}

export function submitPic(data) {
  return request.post('buss/reportinfopic/add', data)
}

export function resubmitPic(data) {
  return request.post('buss/reportinfopic/edit', data)
}

export function getDetailPic(data) {
  return request.post('buss/reportinfopic/getDetail?id='+data)
}

export function getReviewResult(data) {
  return request.post('buss/reportinfopic/getReviewResult?sectionId='+data)
}

export function getServiceResult(data) {
  return request.post('buss/reportinfopic/getServiceResult?sectionId='+data)
}

export function getOneReport(data) {
  return request.get('buss/reportinfor/getOne?id=' + data)
}

export function delReport(data) {
  return request.post('buss/reportinfor/del', data)
}

export function getOnePic(data) {
  return request.get('buss/reportinfopic/getOne?id=' + data)
}

export function delPic(data) {
  return request.post('buss/reportinfopic/del', data)
}

export function submitUpdateRecord(data) {
  return request.post('buss/reportinfopic/submitUpdateRecord', data)
}

export function updateRecordList(data) {
  return request.post('buss/updaterecordpic/listPage', data)
}

export function getOneCatalogue(data) {
  return request.get('buss/catalogue/getOne?id=' + data)
}

export function getOneCataloguePic(data) {
  return request.get('buss/cataloguepic/getOne?id=' + data)
}

export function delCatalogue(data) {
  return request.post('buss/catalogue/del', data)
}

export function delCataloguePic(data) {
  return request.post('buss/cataloguepic/del', data)
}

export function getApprovalList(data) {
  return request.post('buss/approvalitem/getApprovalList', data)
}

export function getPermission(data) {
  return request.post('buss/approvalitem/getPermission', data)
}

export function getApprovals(data) {
  return request.post('buss/approvalsetting/getApprovals', data)
}

export function getListForSetting(data) {
  return request.post('buss/approvalsetting/listPage', data)
}

export function submitSetting(data) {
  return request.post('buss/approvalsetting/add', data)
}

export function resubmitSetting(data) {
  return request.post('buss/approvalsetting/edit', data)
}

export function delSetting(data) {
  return request.post('buss/approvalsetting/del', data)
}

export function getOneForSetting(data) {
  return request.get('buss/approvalsetting/getOne?id=' + data)
}

export function getLeftList(data) {
  return request.post('buss/approvalprocedures/getLeftList', data)
}
export function getUnusefulApprovals(data) {
  return request.post('buss/approvalprocedures/getApprovals', data)
}

export function getAchieveSum(data) {
  return request.post('buss/approvalprocedures/getAchieveSum', data)
}


export function approvalSubmitSetting(data) {
  return request.post('buss/approvalprocedures/submitSetting', data)
}

export function getAllProject(data) {
  return request.post('buss/approvalitem/getAllApprovalDict', data)
}
export function getAllApprovalDict() {
  return request.post('buss/approvalitem/getAllApprovalDict', {})
}
